﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="GuidePage2.aspx.cs" Inherits="InstanceConfigurer.GuidePage2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Guide Page 2</h2>
				<a href="GuidePage1.aspx">Guide Page 1 - Instance Controller Operation</a><br />

	<p><strong>Instance Controller Initial Setup:</strong></p>
	<p>Before using the Instance Controller <strong>you must set up critical 
		configuration data</strong>.&nbsp; It is mandatory that these minimum critical 
		data items be set prior to deployment.</p>
	<p>If you are using Visual Studio 2010 the best place to go to make these settings 
		is in the project named &quot;ApplicationSettingsManager&quot;.&nbsp; Double-click on the 
		&quot;Properties&quot; folder in the project and then select the &quot;Settings&quot; tab.&nbsp; A 
		list of Application Setting will be displayed.</p>
	<p><strong>Applying Critical Settings:</strong></p>
	Using your Azure Portal obtain your SubscriptionID and your Management 
		Certificate thumbprint.<br />
		<ol>
			<li>Paste your subscriptionID into the value field for the following names: 
				<em>ConfigurationRoleRowKey, PerformanceCountersPartitionKey, 
				StateMachinePartitionKey, subscriptionID</em>
			</li>
			<li>Paste your certificate thumbprint into the value field for the following name:
				<em>thumbprint</em>
			</li>
		</ol><br />
			From Visual Studio get the webrole name of the 
			application to be controlled (eg: MapServer)
		<ol>
			<li>Paste the application name into the value field for the following name: <em>
				ControlledRoleName</em></li>
		</ol>
	<p>Mentioned in the discussion in Guide Page 1, General Configuration Concepts - 
		Diagnostic Data, the application must be configured in Azure fabric to collect 
		diagnostic data.&nbsp; This is pre-configured with a number of default settings.&nbsp; 
		If you wish to modify the default settings you must have Visual Studio and must 
		edit the project: <em>WADConfigureWebRole</em>, filename: <em>PlugIn.cs</em>, in 
		code region: <em>Default settings if not specified by outside code.</em>&nbsp; 
		Please consult MSDN for information on configuring Azure Diagnostics.</p>
	<p>&nbsp;</p>
</asp:Content>
